package com.lemon.exam.repository;

import com.lemon.exam.entity.po.RoleMenuResourcePO;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;


/**
 * 菜单-接口中间表 数据访问接口
 *
 * @author Lemon
 * @since 2025/05/08 12:31:56
 */
public interface RoleMenuResourceRepository extends R2dbcRepository<RoleMenuResourcePO, Long> {
    @Query("SELECT menu_id, resource_path FROM sys_role_menu_resource WHERE role_id = :roleId")
    Flux<RoleMenuResourcePO> findByRoleId(Long roleId);
}
